package cn.sharp.bbs.entity.DO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
public class PostDto {
    private Long postId;
    private String title;
    private String content;
    private String img;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    private Long authorId;
    private String authorName;
    private String authorAvatar;
    private int area;
    private int type;
    private List<Label> labels;
    private boolean like;
    private boolean collect;
    private boolean followPost;
    private boolean followAuthor;
    private Long likeCount;
    private Long collectCount;
    private Long followPostCount;
    private String path;
}